package com.example.admin.service;

import com.example.xo.pojo.Category;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author YangJiaHao
 */
@Transactional
public interface CategoryService {
    public boolean add(Category category);
    public boolean delete(String id);
    public boolean update(Category category);
    public List<Category> findAll();
    public Category findById(String id);
    public Category findByName(String name);
}
